<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户登录</title>
    <link rel="stylesheet" href="css/login.css">
</head>
<body>
    <div class="frame">
        <div class="form-container">
            <div id="message" class="message"></div>

            <h2>登录</h2>
            <form id="login-form">
                <label for="login-username">用户名:</label>
                <input type="text" id="login-username" name="username">
                <label for="login-password">密码:</label>
                <input type="password" id="login-password" name="password">
                <button type="button" onclick="login()">登录</button>
                <div id="login-error" class="error-message"></div>
            </form>
            <p>没有账号？<a href="register.html">注册</a></p>
        </div>
    </div>
    <script src="js/login.js"></script>
</body>
</html>
